<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head th:replace="admin/_fragments :: head(~{::title})">
    <meta charset="UTF-8">
    <title>分类管理</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.css">
    <link rel="stylesheet" href="../../static/css/mine.css">
</head>
<body>

<!--导航-->
<nav th:replace="admin/_fragments :: menu(3)" class="ui inverted attached segment m-padded-tb-mini m-shadow-small">
    <div class="ui container">
        <div class="ui inverted secondary stackable menu">
            <h2 class="ui teal header item">Volcreate</h2>
            <!--icon的地址-->
            <a href="index.html" class="m-item item m-mobile-hide"><i class="home icon"></i>管理首页</a>
            <a href="blogs.html" class="m-item item m-mobile-hide"><i class="blogger icon"></i>博客管理</a>
            <a href="category.html" class="m-item item m-mobile-hide"><i class="idea icon"></i>分类管理</a>
            <a href="index.html" class="m-item item m-mobile-hide"><i class="bars icon"></i>更多</a>
            <!--登录管理-->
            <div class="right m-item m-mobile-hide menu">
                <div class="ui dropdown item">
                    <div class="text"><img class="ui avatar image" src="../../static/images/c1.jpeg" alt="">zxc</div>
                    <i class="dropdown icon"></i>
                    <div class="menu"><a href="#" class="item">注销</a></div>
                </div>
            </div>
        </div>
    </div>
    <!--手机端适配-->
    <a href="#" class="ui menu toggle black icon button m-right-top m-mobile-show">
        <i class="sidebar icon"></i>
    </a>
</nav>


<!--分类管理-->
<div th:replace="admin/_fragments :: cat_menu(3)"   class="ui attached pointing menu">
    <div class="ui container">
        <div class="left menu">
            <a href="#"  class="item">分类管理</a>
        </div>
        <div class="right menu m-padded-lr-responsive">
            <a href="#"  class="item">类别</a>
            <a href="#"  class="active item">标签</a>
            <button type="button" class="ui button" onclick="window.history.go(-1)">返回</button>
        </div>
    </div>
</div>



<!--中间内容-->
<div class="m-container m-padded-tb-big">
    <div class="ui container">
        <div class="ui Blue message" th:unless="${#strings.isEmpty(message)}">
            <i class="close icon"></i>
            <div class="header">提示：</div>
            <p th:text="${message}">恭喜，操作成功！</p>
        </div>
        <table class="ui celled center aligned table">
            <thead>
            <tr>
                <th></th>
                <th>标签名称</th>
                <th>生成时间</th>
                <th>修改时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <tr th:each="tag,iterStat: ${page.list}">
                <td th:text="${iterStat.count}">1</td>
                <td th:text="${tag.name}">Linux</td>
                <td th:text="${#dates.format(tag.gmtCreate, 'yyyy-MM-dd HH:mm')}" >生成时间</td>
                <td th:text="${#dates.format(tag.gmtModified, 'yyyy-MM-dd HH:mm')}">修改时间</td>
                <td>
                    <a href="#" th:href="@{/admin/tag/{id}/edit(id=${tag.id})}" class="ui mini teal basic button">编辑</a>
                    <a href="#" th:href="@{/admin/tag/{id}/delete(id=${tag.id})}" class="ui mini red basic button">删除</a>
            </tr>
            </tbody>
            <tfoot>
            <tr>
                <th colspan="5">
                    <a href="#" th:href="@{/admin/tag/edit}" class="ui mini right floated primary labeled icon button">
                        <i class="idea icon"></i> Add
                    </a>
                    <div class="ui mini left floated pagination menu" th:if="${page.pages}>1">
                        <a th:href="@{/admin/tag(page=${page.pageNum}-1)}" class=" item" th:unless="${page.isFirstPage}"><i class="left chevron icon"></i>上一页</a>
                        <a class=" item" th:href="@{/admin/tag(page=${pageNum})}" th:each="pageNum : ${page.navigatepageNums}" th:text="${pageNum}" th:if="${page.navigatePages} lt 5" >1</a>
                        <a th:href="@{/admin/tag(page=${page.pageNum}+1)}" class=" item" th:unless="${page.isLastPage}">下一页<i class="right chevron icon"></i></a>
                    </div>
                </th>
            </tr>
            </tfoot>
        </table>
    </div>
</div>






<!----------------JS---------------->
<!--/*/<th:block th:replace="admin/_fragments :: script" >/*/-->
<script src="https://cdn.jsdelivr.net/npm/jquery@3.2/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/semantic-ui@2.4.2/dist/semantic.min.js"></script>
<script src="../../static/js/mine.js"></script>
<!--/*/</th:block>/*/-->
<script>

    $(".tabular.menu .item").tab();

    $('.ui.dropdown').dropdown({
        on: 'hover'
    });
    //消息提示关闭初始化
    $('.message .close')
        .on('click', function () {
            $(this)
                .closest('.message')
                .transition('fade');
        });

</script>
<!----------------JS---------------->
</body>
</html>